package cn.portx.policy.impl;

import cn.portx.policy.IChineseToCodeGeneratorHandler;
import cn.portx.utils.PinyinFirstletterUtils;

public class DefaultChineseToCodeGeneratorHandle implements IChineseToCodeGeneratorHandler {

	@Override
	public String generator(String chinese) {
		try {
			return PinyinFirstletterUtils.getPfl(chinese);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

}
